Skip to content

Conversation

@lifeizhou-ap
Copy link
Collaborator

Summary

Fixes Issue #6236

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Manual testing

Copilot AI review requested due to automatic review settings January 9, 2026 09:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #6236 by preventing cliclack.confirm prompts from being called in non-interactive sessions, which would cause hangs or failures in automated environments like goose term or CI/CD.

Key changes:

  • Added interactive parameter to check_missing_extensions_or_exit function
  • Added conditional logic to skip interactive prompts when session_config.interactive is false
  • Non-interactive sessions now emit warnings to stderr and continue execution instead of prompting

Copy link
Collaborator

@DOsinga DOsinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider at some point to have a utility that would take the question and the warning and the default value and then in non-interactive mode print the warning and assume the default, but let's go with this!

process::exit(0);
}
} else {
// Non-interactive mode: warn and continue without missing extensions
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove the comment?

@lifeizhou-ap lifeizhou-ap merged commit 0afb645 into main Jan 11, 2026
18 checks passed
@lifeizhou-ap lifeizhou-ap deleted the lifei/fix-resume-with-different-working-dir-non-interactive branch January 11, 2026 22:49
zanesq added a commit that referenced this pull request Jan 12, 2026
…ased

* 'main' of github.com:block/goose:
  chore: break up process agent response (#6348)
  More 3.7 removal (#6414)
  CLI show extension errors (#6398)
  fix[desktop]: Improve UX for ExtensionItem component (#6443)
  update[doc]: Add tip for GitHub Copilot Provider (#6441)
  Avoid using cliclack.confirm in non-interactive session (#6412)
  docs: claude prompt caching note (#6429)
  Restore task completion notification (#6427)
  docs: stream-json and auth-token cli options (#6426)
fbalicchia pushed a commit to fbalicchia/goose that referenced this pull request Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants